package cn.hebutrun.oulabot.controller;

import cn.hebutrun.oulabot.entity.UserLogin;
import cn.hebutrun.oulabot.service.IUserLoginService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户登录表 前端控制器
 * </p>
 *
 * @author zhaolong
 * @since 2022-09-07
 */
@RestController
@RequestMapping("/userLogin")
@RequiredArgsConstructor
public class UserLoginController {

  private final IUserLoginService iUserLoginService;

  @GetMapping("/list")
  public List<UserLogin> list() {
    return iUserLoginService.list();
  }

}
